package com.itgaoshu.service.impl;

import com.itgaoshu.bean.Report;
import com.itgaoshu.bean.ReportLast;
import com.itgaoshu.mapper.OutpatienttypeMapper;
import com.itgaoshu.service.OutPatientService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * \* @author: 李豪杰
 * \* Date: 2021/3/23
 * \* Time: 9:27
 * \* Description:
 * \
 */
@Service
@Transactional
public class OutPatientServiceImpl implements OutPatientService {
    @Resource
    private OutpatienttypeMapper otm;
    //查看交过费没取药的患者
    @Override
    public List<ReportLast> sel() {
        return otm.sel();
    }
    //修改用户状态
    @Override
    public Integer chuku(ReportLast report) {
        return otm.chuku(report);
    }

    //查看交过费取过要的患者
    @Override
    public List<ReportLast> selhuan(ReportLast report) {
        return otm.selhuan(report);
    }
    //查询该用户的总价钱
    @Override
    public int zong(Integer reid) {
        return otm.zong(reid);
    }
}
